package com.baymax.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baymax.common.BaseEntity;
import lombok.Data;

/**
 * 角色 实体类
 *
 * @Author: baymax
 * @CreateTime: 2023/3/28 21:11
 * @Version: 1.0
 */
@TableName(value = "sys_role")
@Data
public class SysRole extends BaseEntity {

    /**
     * 角色id
     */
    @TableId(value = "role_id", type = IdType.ASSIGN_ID)
    private Long roleId;

    /**
     * 角色名称
     */
    @TableField(value = "role_name")
    private String roleName;

    /**
     * 角色标识
     */
    @TableField(value = "role_tag")
    private String roleTag;

    /**
     * 数据权限等级
     */
    @TableField(value = "data_scope")
    private Integer dataScope;

}
